import request from '@/utils/request'

// 查询货主微信钱包管理列表
export function listPayWechat(query) {
  return request({
    url: '/employer/payWechat/list',
    method: 'get',
    params: query
  })
}

// 查询货主微信钱包管理详细
export function getPayWechat(id) {
  return request({
    url: '/employer/payWechat/' + id,
    method: 'get'
  })
}

// 新增货主微信钱包管理
export function addPayWechat(data) {
  return request({
    url: '/employer/payWechat',
    method: 'post',
    data: data
  })
}

// 修改货主微信钱包管理
export function updatePayWechat(data) {
  return request({
    url: '/employer/payWechat',
    method: 'put',
    data: data
  })
}

// 删除货主微信钱包管理
export function delPayWechat(id) {
  return request({
    url: '/employer/payWechat/' + id,
    method: 'delete'
  })
}
